package staff.logic;

import java.util.List;

import staff.logic.Employee.PositionType;

public class Worker extends Position {

    public Worker(Employee employe) {
        super(employe);
        description = "";
    }

    @Override
    public List<Employee> getSubordinate(EmployeSystem employeSystem) {
        throw new UnsupportedOperationException("Only manager has subordinate");
    }

    @Override
    public PositionType getType() {
        return PositionType.WORKER;
    }

    @Override
    public String getDescription() {
        return description;
    }

    @Override
    public void setDescription(String description) {
        throw new UnsupportedOperationException(
                "Description for worker cannot be changed");
    }

}
